import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

import { ApiProperty } from '@nestjs/swagger';
import { BaseEntity } from '../base.entity';

@Entity({ name: 'sys_user_grade' })
export default class SysUserGrade extends BaseEntity {
  @PrimaryGeneratedColumn({ name: 'user_id' })
  @ApiProperty()
  userId: number;

  @ApiProperty()
  @Column()
  name: string;

  @ApiProperty()
  @Column({ name: 'project_num' })
  projectNum: number;

  @ApiProperty()
  @Column({ name: 'group_num' })
  groupNum: number;

  @ApiProperty()
  @Column({ name: 'interface_num' })
  interfaceNum: number;

  @ApiProperty()
  @Column({ name: 'favorate_project_num' })
  favorateProjectNum: number;

  @ApiProperty()
  @Column({ name: 'category_id' })
  categoryId: number;
}
